<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<div class="m_left">
	<div class="left_n">管理中心</div>
	<c:if test="${!empty sessionScope.easybuyUserLogin}">
	<div class="left_m">
		<div class="left_m_t t_bg1">订单中心</div>
		<ul>
			<li><a href="javascript:;" onclick="clickLeft(this,'/AdminOrderServlet?action=index&userId=${sessionScope.easybuyUserLogin.id}')" class="now">我的订单</a></li>
			<c:if test="${sessionScope.easybuyUserLogin.type==1}">
				<li><a href="javascript:;" onclick="clickLeft(this,'/AdminOrderServlet?action=queryAllOrder')" class="now">全部订单</a></li>
			</c:if>
		</ul>
	</div>
	</c:if>
	<c:if test="${!empty sessionScope.easybuyUserLogin}">
	<div class="left_m">
		<div class="left_m_t t_bg2">会员中心</div>
		<ul>
			<li><a href="javascript:;" onclick="clickLeft(this,'/AdminUserServlet?action=index')" class="now">用户信息</a></li>
			<c:if test="${sessionScope.easybuyUserLogin.type==1}">
				<li><a href="javascript:;" onclick="clickLeft(this,'/AdminUserServlet?action=user')" class="now">用户列表</a></li>
			</c:if>
		</ul>
	</div>
	</c:if>
	<c:if test="${sessionScope.easybuyUserLogin.type==1}">
		<div class="left_m">
			<div class="left_m_t t_bg2">商品管理</div>
			<ul>
				<li><a href="javascript:;" onclick="clickLeft(this,'/ProductCategoryService?action=category')" class="now">分类管理</a></li>
				<li><a href="javascript:;" onclick="clickLeft(this,'/ProductServlet?action=index')" class="now">商品管理</a></li>
				<li><a href="javascript:;" onclick="clickLeft(this,'/ProductCategoryService?action=toAddUpdate')" class="now">商品上架</a></li>
			</ul>
		</div>
	</c:if>
	<div class="left_m">
		<div class="left_m_t t_bg2">资讯中心</div>
		<ul>
			<li><a href="javascript:;" onclick="clickLeft(this,'/AdminNewsServlet?action=queryNewsList')" class="now">资讯列表</a></li>
		</ul>
	</div>
</div>
<script type="text/javascript" src="${ctx}/statics/js/leftBar/left.js"></script>
<script src="${ctx}/statics/js/backend/Product.js"></script>
<script src="${ctx}/statics/js/backend/backend.js"></script>